$(function(){
   	
	$(".susp-wechat").hover(function(){
		$(".xc-wechat-box").show();
	},function(){
		$(".xc-wechat-box").hide();
	});
	$(".susp-ser1").hover(function(){
		$(".xc-qq-box").show();
	},function(){
		$(".xc-qq-box").hide();
	});
	//关闭div
	$(".closeBtn").click(function(){
		$(".fullShowVideo").removeClass("fixedVideo");
		$(".fullShowVideo").fadeOut();
		$(".fullShowVideo2").removeClass("fixedVideo");
		$(".fullShowVideo2").hide();
	});
	
	$(window).on('scroll', function(){
		if($(window).scrollTop() >= 100){
			$(".susp-gotop").fadeIn(500);
			if($(window).scrollTop() >= 200){
				
			}
			
		} else {
			$(".susp-gotop").fadeOut(500);
			
		}
	});
});
//全屏
/* function fullscreen(){  
    elem=document.body;  
    if(elem.webkitRequestFullScreen){  
        elem.webkitRequestFullScreen();     
    }else if(elem.mozRequestFullScreen){  
        elem.mozRequestFullScreen();  
    }else if(elem.requestFullScreen){  
        elem.requestFullscreen();  
    }else{  
        //浏览器不支持全屏API或已被禁用  
    }  
}  
function exitFullscreen(){  
    var elem=document;  
    if(elem.webkitCancelFullScreen){  
        elem.webkitCancelFullScreen();      
    }else if(elem.mozCancelFullScreen){  
        elem.mozCancelFullScreen();  
    }else if(elem.cancelFullScreen){  
        elem.cancelFullScreen();  
    }else if(elem.exitFullscreen){  
        elem.exitFullscreen();  
    }else{  
        //浏览器不支持全屏API或已被禁用  
    } 
}*/

//置顶事件
function topBack(){
  $('body,html').animate({scrollTop:0},300);
}
function fullShowVideo(){
	$(".fullShowVideo").fadeIn();
	$(".fullShowVideo").addClass("fixedVideo");
	
}
function fullShowVideo2(){
	$(".fullShowVideo2").fadeIn();
	$(".fullShowVideo2").addClass("fixedVideo");
}
